package com.menggudf.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.menggudf.model.ResultModel;

public interface MedicineService{

    ResultModel add(
            String name,
            String ingredient,
            String traits,
            String effectType,
            String indications,
            String specification,
            String dosage,
            String adverseReactions,
            String taboo,
            String precautions,
            String price,
            String adminCode);

    ResultModel update(
            String name,
            String ingredient,
            String traits,
            String effectType,
            String indications,
            String specification,
            String dosage,
            String adverseReactions,
            String taboo,
            String precautions,
            String price,
            String adminCode);

    Map<String, Object> get(String name, int pageSize, int offset);

    ResultModel getDetail(String name);

    ResultModel delete(String name);

    ResultModel getDetailInDB(String name);
    
    ResultModel createMedicine(String name, String details, Integer skinTest, String usage, String sideEffect, String taboo);

    ResultModel deleteMedicine(Integer id);

    Map<String, Object> getMedicine(String name, int pageSize, int offset);

    ResultModel updateMedicine(Integer id, String details, Integer skinTest, String usage, String sideEffect, String taboo, String name);

    ResultModel importExcel(MultipartFile file);

    ResultModel getMedicineInfo(Integer id);

    ResultModel getDetailInDB(List<String> names);

    Map<String, Object> getNewCreatedMedicineList(String name, int pageSize, int offset);

}
